package com.cssnj.portal.domain.user;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Table(name = "GL_GN_SYQK")
public class GlGnSyqkEntity {
    private String uuid;
    private String swrysfDm;
    private String swryDm;
    private String swjgDm;
    private String gnId;
    private String lrryDm;
    private String xgryDm;
    private Timestamp lrSj;
    private Timestamp xgSj;

    @Id
    @Column(name = "UUID")
    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    @Basic
    @Column(name = "SWRYSF_DM")
    public String getSwrysfDm() {
        return swrysfDm;
    }

    public void setSwrysfDm(String swrysfDm) {
        this.swrysfDm = swrysfDm;
    }

    @Basic
    @Column(name = "SWRY_DM")
    public String getSwryDm() {
        return swryDm;
    }

    public void setSwryDm(String swryDm) {
        this.swryDm = swryDm;
    }

    @Basic
    @Column(name = "SWJG_DM")
    public String getSwjgDm() {
        return swjgDm;
    }

    public void setSwjgDm(String swjgDm) {
        this.swjgDm = swjgDm;
    }

    @Basic
    @Column(name = "GN_ID")
    public String getGnId() {
        return gnId;
    }

    public void setGnId(String gnId) {
        this.gnId = gnId;
    }

    @Basic
    @Column(name = "LRRY_DM")
    public String getLrryDm() {
        return lrryDm;
    }

    public void setLrryDm(String lrryDm) {
        this.lrryDm = lrryDm;
    }

    @Basic
    @Column(name = "XGRY_DM")
    public String getXgryDm() {
        return xgryDm;
    }

    public void setXgryDm(String xgryDm) {
        this.xgryDm = xgryDm;
    }

    @Basic
    @Column(name = "LR_SJ")
    public Timestamp getLrSj() {
        return lrSj;
    }

    public void setLrSj(Timestamp lrSj) {
        this.lrSj = lrSj;
    }

    @Basic
    @Column(name = "XG_SJ")
    public Timestamp getXgSj() {
        return xgSj;
    }

    public void setXgSj(Timestamp xgSj) {
        this.xgSj = xgSj;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GlGnSyqkEntity that = (GlGnSyqkEntity) o;
        return Objects.equals(uuid, that.uuid) &&
                Objects.equals(swrysfDm, that.swrysfDm) &&
                Objects.equals(swryDm, that.swryDm) &&
                Objects.equals(swjgDm, that.swjgDm) &&
                Objects.equals(gnId, that.gnId) &&
                Objects.equals(lrryDm, that.lrryDm) &&
                Objects.equals(xgryDm, that.xgryDm) &&
                Objects.equals(lrSj, that.lrSj) &&
                Objects.equals(xgSj, that.xgSj);
    }

    @Override
    public int hashCode() {
        return Objects.hash(uuid, swrysfDm, swryDm, swjgDm, gnId, lrryDm, xgryDm, lrSj, xgSj);
    }
}
